package api

import (
	"exam/api/handler"
	"github.com/gin-gonic/gin"
)

func Exam(r *gin.Engine) {
	api := r.Group("/api")
	{
		exam := api.Group("/exam")
		{
			exam.POST("/examtext", handler.ExamTest)
		}
		user := api.Group("/user")
		{
			user.POST("register", handler.Register)
			user.POST("login", handler.Login)
		}
	}
}
